/**
 * 封装用户相关API接口
 */
import request from '../utils/request'

/**
 *
 * @param {*} data {mobile:'',code:''}
 */
export function login (data) {
  return request.post('authorizations', data)
}

/**
 * 获取用户默认频道数据
 */
export function channels () {
  return request.get('user/channels')
}
